class IssuesContainersController < ApplicationController
  # GET /issues_containers
  # GET /issues_containers.xml
  layout "backend"
  def index
    @issues_containers = IssuesContainer.find(:all)
  end

  # GET /issues_containers/1
  # GET /issues_containers/1.xml
  def show
    @issues_container = IssuesContainer.find(params[:id])

    respond_to do |format|
      format.html # show.html.erb
      format.xml  { render :xml => @issues_container }
    end
  end

  # GET /issues_containers/new
  # GET /issues_containers/new.xml
  def new
    @issues_container = IssuesContainer.new

    respond_to do |format|
      format.html # new.html.erb
      format.xml  { render :xml => @issues_container }
    end
  end

  # GET /issues_containers/1/edit
  def edit
    @issues_container = IssuesContainer.find(params[:id])
  end

  # POST /issues_containers
  # POST /issues_containers.xml
  def create
    @issues_container = IssuesContainer.new(params[:issues_container])

    respond_to do |format|
      if @issues_container.save
        flash[:notice] = 'IssuesContainer was successfully created.'
        format.html { redirect_to(@issues_container) }
        format.xml  { render :xml => @issues_container, :status => :created, :location => @issues_container }
      else
        format.html { render :action => "new" }
        format.xml  { render :xml => @issues_container.errors, :status => :unprocessable_entity }
      end
    end
  end

  # PUT /issues_containers/1
  # PUT /issues_containers/1.xml
  def update
    @issues_container = IssuesContainer.find(params[:id])

    respond_to do |format|
      if @issues_container.update_attributes(params[:issues_container])
        flash[:notice] = 'IssuesContainer was successfully updated.'
        format.html { redirect_to(@issues_container) }
        format.xml  { head :ok }
      else
        format.html { render :action => "edit" }
        format.xml  { render :xml => @issues_container.errors, :status => :unprocessable_entity }
      end
    end
  end

  # DELETE /issues_containers/1
  # DELETE /issues_containers/1.xml
  def destroy
    @issues_container = IssuesContainer.find(params[:id])
    @issues_container.destroy

    respond_to do |format|
      format.html { redirect_to(issues_containers_url) }
      format.xml  { head :ok }
    end
  end
end
